/*
 * mhcommentcontainer.cpp
 *
 *  Created on: 2010-7-15
 *      Author: angelstone
 */
#include <wx/wx.h>
#include "mhcommentcontainer.h"

using namespace mediahouse;

void CMHCommentContainer::AddComment(const wxString & comment) {
	m_Comments.Add(comment);
}
void CMHCommentContainer::RemoveComment(const wxString & comment) {
	m_Comments.Remove(comment);
}
int CMHCommentContainer::HasComment(const wxString & comment) {
	return m_Comments.Index(comment) >= 0 ? 0 : 1;
}
void CMHCommentContainer::ClearComments() {
	m_Comments.Clear();
}
int CMHCommentContainer::GetAllComments(wxArrayString & comments) {
	wxArrayString::iterator it;

	for(it = m_Comments.begin(); it != m_Comments.end(); it++) {
		comments.Add(*it);
	}
}
